/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Mod8_Ex2;

/**
 *
 * @author Root
 */
public class SavingsAccount extends Account {

    private double interstRate;

    public SavingsAccount(double balance, double interstRate) {
        super(balance);
        this.interstRate = interstRate;

    }

    @Override
    public String toString() {
        return "SavingsAccount with a "+balance+" and " + interstRate + "% interest";
    }
    public String toString2() {
        return "Saving Account :current balance is $ "+balance;
    }



}
